<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>领券中心</title>
		<link rel="stylesheet" type="text/css" href="__STATIC__/css/tpshop.css" />
		<script src="__STATIC__/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8"></script>
        <link rel="shortcut icon" type="image/x-icon" href="{$tpshop_config['shop_info_store_ico']}" media="screen"/>
		<script src="__PUBLIC__/js/global.js"></script>
		<script src="__STATIC__/js/lazyload.min.js"></script>
	</head>
	<body>
		<!--header-s-->
		<include file="public/header" w='w1224'/>
		<!--header-e-->
		<div class="nav-coumain">
			<div class="couponlistb">
				<div class="w1224">
					<div class="titl_chooi p">
						<div class="f-sort">
							<a href="{:U('Activity/coupon_list',array('atype'=>1))}" class="<if condition='$Request.param.atype eq 1 or $Request.param.atype eq 0'>selted</if>" >默认</a>
							<a href="{:U('Activity/coupon_list',array('atype'=>2))}" class="<if condition='$Request.param.atype eq 2'>selted</if>" >即将过期</a>
							<a href="{:U('Activity/coupon_list',array('atype'=>3))}" class="<if condition='$Request.param.atype eq 3'>selted</if>" >面值最大</a>
						</div>
					</div>
					<div class="coupon-ticket p">
					<foreach name="coupon_list" item="vo">
						<if condition="$vo[createnum] gt $vo[send_num] or $vo[createnum] eq 0">
                            <div class="aldw-item">
                                <div class="q-type">
                                    <div class="q-price p">
                                        <em>￥</em>
                                        <div class="num">{$vo.money|intval}</div>
                                        <div class="txt">
                                            <div class="typ-txt">商城券</div>
                                            <div class="limit">
						                    <span class="ftx-06">
				                        		满{$vo.condition|intval}元可用
						                    </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="q-range">
                                        <div class="range-item">
                                            <p>{$vo.name}</p>
                                        </div>
                                        <div class="range-item">{$vo.use_scope}</div>
                                        <div class="range-item">{$vo.use_start_time|date='Y-m-d H:i',###}-{$vo.use_end_time|date='Y-m-d H:i',###}</div>
                                    </div>
                                </div>
                                <div class="q-opbtns ">
                                    <a href="{:U('Activity/get_coupon',array('coupon_id'=>$vo[id]))}">
                                        <b class="semi-circle"></b>
                                        立即领取
                                    </a>
                                </div>
                                <div class="q-state">
                                    <div class="btn-state"></div>
                                </div>
                            </div>
                    <elseif condition="$vo[isget] eq 1" />
						<div class="aldw-item aldw-useing">
							<div class="q-type">
						        <div class="q-price p">
						            <em>￥</em>
						            <div class="num">{$vo.money}</div>
						            <div class="txt">
						                <div class="typ-txt">商城券</div>
						                <div class="limit">
						                    <span class="ftx-06">
				                        		满{$vo.condition|intval}元可用
						                    </span>
						                </div>
						            </div>
						        </div>
						        <div class="q-range">
						            <div class="range-item">
						                <p>仅可购买{$vo.name}商品</p>
						            </div>
						            <div class="range-item">{$vo.use_scope}</div>
						            <div class="range-item">{$vo.use_start_time|date='Y-m-d H:i',###}-{$vo.use_end_time|date='Y-m-d H:i',###}</div>
						        </div>
						    </div>
						    <div class="q-opbtns ">
						    	<a href="javascript:void(0);">
						    		<b class="semi-circle"></b>
						    		立即使用
						    	</a>
						    </div>
						    <div class="q-state">
						    	<!--两种状态 btn-state:已抢完，btn-state,geten:已领取-->
						    	<div class="btn-state geten"></div>
						    </div>
					    </div>
                    <else />
                        <div class="aldw-item aldw-gray">
                                <div class="q-type">
                                    <div class="q-price p">
                                        <em>￥</em>
                                        <div class="num">{$vo.money|intval}</div>
                                        <div class="txt">
                                            <div class="typ-txt">商城券</div>
                                            <div class="limit">
						                    <span class="ftx-06">
				                        		满{$vo.condition|intval}元可用
						                    </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="q-range">
                                        <div class="range-item">
                                            <p>{$vo.name}</p>
                                        </div>
                                        <div class="range-item">{$vo.use_scope}</div>
                                        <div class="range-item">{$vo.use_start_time|date='Y-m-d H:i',###}-{$vo.use_end_time|date='Y-m-d H:i',###}</div>
                                    </div>
                                </div>
                                <div class="q-opbtns ">
                                    <a href="javascript:void(0);">
                                        <b class="semi-circle"></b>
                                        今日已领完
                                    </a>
                                </div>
                                <div class="q-state">
                                    <!--两种状态 btn-state:已抢完，btn-state,geten:已领取-->
                                    <div class="btn-state"></div>
                                </div>
                        </div>
					    </if>
					   </foreach>	
					</div>
					<div class="page p">{$page}</div>
				</div>
			</div>
		</div>
		<!--footer-s-->
		<div class="footer p">
			<include file="public/footer" />
			<include file="public/sidebar_cart" />
		</div>
		<!--footer-e-->
		<script src="__STATIC__/js/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="__STATIC__/js/headerfooter.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			//优惠券筛选
			$(function(){
				$('.titl_chooi a').click(function(){
					$(this).addClass('selted').siblings().removeClass('selted');
				})
			})
		</script>
	</body>
</html>